-- GENERATED SPELL FOR [Altar Warden] --


function spell0_28784(pUnit, Event) --@Gust of Wind,n/a--
pUnit:FullCastSpellOnTarget(54588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28784', 680, 1)
end

function spell1_28784(pUnit, Event) --@Whirling Winds,Self--
pUnit:FullCastSpellOnTarget(54589,pUnit)
pUnit:RegisterEvent('Sorts_28784', 542, 1)
end

function spell2_28784(pUnit, Event) --@Zephyr,n/a--
pUnit:FullCastSpellOnTarget(50215,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28784', 15000, 1)
end

function Sorts_28784(pUnit, Event)
local choix_sorts_28784 = math.random(0, 2)
if choix_sorts_28784 == 0 then
pUnit:RegisterEvent('spell0_28784', 1, 1)
end
if choix_sorts_28784 == 1 then
pUnit:RegisterEvent('spell1_28784', 1, 1)
end
if choix_sorts_28784 == 2 then
pUnit:RegisterEvent('spell2_28784', 1, 1)
end
end

function mob28784_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28784', math.random(1500, 3000), 1)
end

function mob28784_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28784_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28784_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28784, 1, 'mob28784_Action')
RegisterUnitEvent(28784, 2, 'mob28784_Leave')
RegisterUnitEvent(28784, 3, 'mob28784_Kill')
RegisterUnitEvent(28784, 4, 'mob28784_Die')
